Skip to content

fix: add JSON error handling to auth config loader - #3836

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/auth-json-error-handling
Open

fix: add JSON error handling to auth config loader#3836
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/auth-json-error-handling

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Summary

Wrap json.loads() in load_auth_config() with try/except to catch malformed JSON.

Changes

  • authentication/config.py: Catch JSONDecodeError and raise clean ValueError

Wrap json.loads() in load_auth_config() with try/except to catch
JSONDecodeError and raise a clean ValueError with a descriptive
message, matching the convention used for all other validation
failures in the same function.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 29, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant